﻿if not ArmorCraft_revision then ArmorCraft_revision = {} end
ArmorCraft_revision.euUS	= ("$Revision: 170 $"):match("(%d+)")

-- Localization code
local L = LibStub("AceLocale-3.0"):NewLocale("ArmorCraft", "enUS", true)

if L then

-- Type of craft that works with ArmorCraft
L['Blacksmithing']	= true
L['Leatherworking']	= true
L['Tailoring']			= true
L['Engineering']		= true
L['Jewelcrafting']	= true
L['Inscription']		= true

-- Player class (when used in the UI)
L['DEATHKNIGHT']		= 'Death Knight'
L['DRUID'] 				= 'Druid'
L['HUNTER']				= 'Hunter'
L['MAGE']				= 'Mage'
L['PALADIN']			= 'Paladin'
L['PRIEST']				= 'Priest'
L['ROGUE']				= 'Rogue'
L['SHAMAN']				= 'Shaman'
L['WARLOCK']			= 'Warlock'
L['WARRIOR']			= 'Warrior'

-- Extra Armor location names
L['Finger 2']			= true
L['Trinket 2']			= true

--[[
INVTYPE_2HWEAPON = "Two-Hand"; -- Two-hand type
INVTYPE_AMMO = "Ammo";
INVTYPE_BAG = "Bag"; -- Bag type
INVTYPE_BODY = "Shirt"; -- Body type
INVTYPE_CHEST = "Chest"; -- Chest type
INVTYPE_CLOAK = "Back"; -- Cloak type
INVTYPE_FEET = "Feet"; -- Feet type
INVTYPE_FINGER = "Finger"; -- Finger type
INVTYPE_HAND = "Hands"; -- Hands type
INVTYPE_HEAD = "Head"; -- Head type
INVTYPE_HOLDABLE = "Held In Off-hand"; -- Holdable type
INVTYPE_LEGS = "Legs"; -- Legs type
INVTYPE_NECK = "Neck"; -- Neck type
INVTYPE_QUIVER = "Quiver";
INVTYPE_RANGED = "Ranged"; -- Ranged type
INVTYPE_RANGEDRIGHT = "Ranged";
INVTYPE_RELIC = "Relic";
INVTYPE_ROBE = "Chest"; -- Robe type
INVTYPE_SHIELD = "Off Hand"; -- Shield type
INVTYPE_SHOULDER = "Shoulder"; -- Shoulder type
INVTYPE_TABARD = "Tabard"; -- Tabard type
INVTYPE_THROWN = "Thrown";
INVTYPE_TRINKET = "Trinket"; -- Trinket type
INVTYPE_WAIST = "Waist"; -- Waist type
INVTYPE_WEAPON = "One-Hand"; -- One-hand type, either hand
INVTYPE_WEAPONMAINHAND = "Main Hand"; -- One-hand type, main hand
INVTYPE_WEAPONMAINHAND_PET = "Main Attack";
INVTYPE_WEAPONOFFHAND = "Off Hand"; -- One-hand type, off hand
INVTYPE_WRIST = "Wrist"; -- Wrist type
]]--

-- itemType texts (http://www.wowwiki.com/ItemType)
-- Armor types
L['Armor']					= _G['ARMOR']
L['Cloth']					= true
L['Leather']				= true
L['Mail']					= true
L['Plate']					= true
L['Shields']				= true
L['Librams']				= true
L['Idols']					= true
L['Totems']					= true
L['Held In Off-hand']	= _G['INVTYPE_HOLDABLE']
L['Miscellaneous']		= _G['MISCELLANEOUS']

-- Weapon types
L['Weapon'] 				= true
L['One-Handed Axes'] 	= true
L['Daggers'] 				= true
L['Fist Weapons'] 		= true
L['One-Handed Maces'] 	= true
L['Polearms'] 				= true
L['Staves'] 				= true
L['One-Handed Swords']	= true
L['Two-Handed Axes'] 	= true
L['Two-Handed Maces']	= true
L['Two-Handed Swords']	= true
L['Bows']					= true
L['Crossbows']				= true
L['Guns']					= true
L['Thrown']					= true
L['Wands']					= true
L['Fishing Poles']		= true


-- For tooltip parsing
L['PARSE_GUN']				= 'Gun'
L['PARSE_BOE']				= 'Binds when equipped'
L['PARSE_BOP']				= 'Binds when picked up'
L['PARSE_BOU']				= 'Binds when used'
L['PARSE_SOULBOUND']		= 'Soulbound'
L['PARSE_UNIQUE']			= 'Unique'
L['PARSE_UNIQUE_EQUIP']	= 'Unique-Equipped'
L['PARSE_ARMOR']			= '^(%d+) Armor'
L['PARSE_REQUIRES']		= '^Requires Level (%d+)'
L['PARSE_DPS']				= '^%((%d+%.%d) damage per second%)'

-- For dropdown menu
L['MENU_SELECT']			= "Select"


-- Short names
L['Off Hand']				= true
L['1-H Axes']				= true
L['1-H Maces']				= true
L['1-H Swords']			= true
L['2-H Axes']				= true
L['2-H Maces']				= true
L['2-H Swords']			= true


-- Default formula names
L['Death Knight : Blood']		= true
L['Death Knight : Frost']		= true
L['Death Knight : Unholy']		= true
L['Druid Feral DPS']				= true
L['Druid FbN Feral DPS']		= true
L['Druid FbN Tank Points']		= true
L["Druid FbN Night's Choise"]	= true
L['Druid Resto']					= true
L['Druid Boomkin']				= true
L['Holy Priest Wand']			= true
L['Holy Priest']					= true
L['Hunter Range']					= true
L['Hunter']							= true
L['Mage Arc']						= true
L['Mage Fire']						= true
L['Mage Frost']					= true
L['Mage Wand']						= true
L['Mage']							= true
L['Paladin']						= true
L['Rogue Dagger AEP']			= true
L['Rogue Dagger MAEP']			= true
L['Rogue Main Hand AEP']		= true
L['Rogue Main Hand MAEP']		= true
L['Rogue Off Hand AEP']			= true
L['Rogue Off Hand MAEP']		= true
L['Shadow Priest Wand']			= true
L['Shadow Priest']				= true
L['Shaman AEP']					= true
L['Shaman OH AEP']				= true
L['Warlock']						= true
L['Warrior Fury']					= true



-- Messages
ARMORCRAFT_NOWINDOW 	= "No trade skill window open."
ARMORCRAFT_NOTARMOR 	= " does not craft armor."
ARMORCRAFT_BADLEVEL 	= "Level must be between 1 and 70."
ARMORCRAFT_NOSELECT 	= "No selection for "
ARMORCRAFT_NOCLASS  	= "No character class selected."
ARMORCRAFT_NOITEM   	= "No craft item selected."
ARMORCRAFT_CLASS    	= "Attribute values for %s class."
ARMORCRAFT_RESET    	= " value reset."
ARMORCRAFT_SKIP     	= "Skipping craft selection "
ARMORCRAFT_EMPTY    	= "Empty item value cache."
ARMORCRAFT_BADFORMAT	= "Bad value format: "
ARMORCRAFT_UNDEFINED	= "Undefined name: "
ARMORCRAFT_WRONG    	= "Wrong item type to compare : "
ARMORCRAFT_ACTIP    	= "Click to toggle ArmorCraft windows."
ARMORCRAFT_USETIP   	= "Click to compare the selected item."
ARMORCRAFT_PARTYTIP 	= "Click to toggle Party members."
ARMORCRAFT_DELETECACHE
							= "Deleting all cached values"
ARMORCRAFT_INVALIDLINK
							= "not a valid itemLink: "
ARMORCRAFT_RESET		= "Reseting the formulas to their default values"
--AC_LEVEL  				= "Level"
--AC_CLASS  				= "Class"



-- Help text
AC_Help = { ['?'] = 'Armorcraft';
	ac = { ['?'] = "The main chat command",
			 [''] = "Toggle the ArmorCraft window",
			 ['<name>'] = "Change the AC target to <name>",
			 ['reset'] = "Reset the formulas to the default values",
	};
};

end